#!/bin/sh
#启动manager
rm -rf /home/jeepay/service/manager/start.log
rm -rf /home/jeepay/service/manager/logs/*
cd /home/jeepay/service/manager
sh /home/jeepay/service/manager/app.sh start
netstat -ano|grep 9217

#启动merchant
rm -rf /home/jeepay/service/merchant/start.log
rm -rf /home/jeepay/service/merchant/logs/*
cd /home/jeepay/service/merchant
sh /home/jeepay/service/merchant/app.sh start
netstat -ano|grep 9218

#启动payment
rm -rf /home/jeepay/service/payment/start.log
rm -rf /home/jeepay/service/payment/logs/*
cd /home/jeepay/service/payment
sh /home/jeepay/service/payment/app.sh start
netstat -ano|grep 9216

chmod 777 /opt/gitee/jeepay/jeepay/*.sh

currTime=$(date +"%Y-%m-%d %T")
echo $currTime
echo "------done---------"